package cn.com.xiaoshoujia.common.activity;

import cn.com.xiaoshoujia.common.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yangrui on 2017/7/11.
 */
@Repository
public class CityActivity {

    @Autowired
    private CityMapper cityMapper;

    /**
     * @Author: yangrui
     * @Description: 查省、市
     * @Date: 下午5:54 2017/7/11
     */
    public List findByParentId(Long parentId) {
        return cityMapper.findByParentId(parentId);
    }
}
